package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.

// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode 

import net.lax1dude.eaglercraft.EaglercraftRandom;

public class ModelGhast extends ModelBase {

	public ModelGhast() {
		tentacles = new ModelRenderer[9];
		byte byte0 = -16;
		body = new ModelRenderer(0, 0);
		body.addBox(-8F, -8F, -8F, 16, 16, 16);
		body.offsetY += 24 + byte0;
		EaglercraftRandom random = new EaglercraftRandom(1660L);
		for (int i = 0; i < tentacles.length; i++) {
			tentacles[i] = new ModelRenderer(0, 0);
			float f = (((((float) (i % 3) - (float) ((i / 3) % 2) * 0.5F) + 0.25F) / 2.0F) * 2.0F - 1.0F) * 5F;
			float f1 = (((float) (i / 3) / 2.0F) * 2.0F - 1.0F) * 5F;
			int j = random.nextInt(7) + 8;
			tentacles[i].addBox(-1F, 0.0F, -1F, 2, j, 2);
			tentacles[i].offsetX = f;
			tentacles[i].offsetZ = f1;
			tentacles[i].offsetY = 31 + byte0;
		}

	}

	public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) {
		for (int i = 0; i < tentacles.length; i++) {
			tentacles[i].rotateAngleX = 0.2F * MathHelper.sin(f2 * 0.3F + (float) i) + 0.4F;
		}

	}

	public void render(float f, float f1, float f2, float f3, float f4, float f5) {
		setRotationAngles(f, f1, f2, f3, f4, f5);
		body.render(f5);
		for (int i = 0; i < tentacles.length; i++) {
			tentacles[i].render(f5);
		}

	}

	ModelRenderer body;
	ModelRenderer tentacles[];
}
